package com.luotao.test2;

public class MySingleton {
	private static MySingleton my=null;
	
	private MySingleton(String path){}
	
	public static MySingleton getInstances(String path){
		if(my==null){
			synchronized (MySingleton.class) {
				if(my==null){
					my = new MySingleton(path);
				}
			}
		}
		return my;
	}
}
